<template>
	<view class="content poRel">
		<!-- <view class="wid100 bacFFF" style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0,0,0,0.2);">
			<view class="wid85 mar dis disAl disJuB foSi30 fowe800" style="height: 100rpx;">
				<view :style="xuan == 0?'color: #37BCC3;':''" @click="xuanClick(0)">一级（1）</view>
				<view :style="xuan == 1?'color: #37BCC3;':''" @click="xuanClick(1)">二级（0）</view>
				<view :style="xuan == 2?'color: #37BCC3;':''" @click="xuanClick(2)">三级（0）</view>
			</view>
		</view> -->
		<scroll-view style="height: calc(100vh - 100rpx);" class="wid100" scroll-y="true" @scrolltolower="lower">
			<view v-if="list.length == 0" class="wid85 mar fowe800 foSi35 mar-top30">
				<view style="height: 50rpx;"></view>
				<view class="dis disJuC">
					<image src="../../static/zanwu2.png" style="width: 400rpx;height: 300rpx;"></image>
				</view>
				<view class="textCen mar-top20" style="color: #868686;">暂无数据</view>
			</view>
			<block v-for="(item,index) in list" :key="index">
				<view style="height: 1rpx;"></view>
				<view class="wid90 mar dis disAl mar-top30">
					<view class="wid25" style="height: 143rpx;">
						<image :src="url+item.avatar" class="hei100 borRad50" style="width: 143rpx; "></image>
					</view>
					<view class=" dis disAl disJuB" style="width: 75%;">
						<view>
							<view class="foSi35 fowe600">{{item.nickname}}</view>
							<view class="foSi20 mar-top15" style="color: #737373;">{{item.createtime}}</view>
						</view>
						<view class="foSi25 fowe600">收益：¥{{item.money}}</view>
					</view>
				</view>
			</block>
			<view style="height: 50rpx;"></view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: this.global.url,
				xuan: 0,
				list: ['']
			}
		},
		onLoad() {
			this.lists()
		},
		methods: {
			lists(){
				var that = this;
				uni.request({
					url: that.global.url + '/api/qianyu_petrol/gasstation_user_xiaji_list',
					method: "POST",
					header: {
						'site-id': that.global.site_id,//自定义请求头信息
						'token': uni.getStorageSync('token')
					},
					data: {},
					success(res) {
						let result = res.data
						console.log(result)
						if (result.code == 1) {
							that.list = result.data
						}
					}
				})
			},
			xuanClick(index){
				if(this.xuan != index){
					this.xuan = index
				}
			},
			tiaozhuan(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style>
	.content {}
</style>